<?php if (!defined('THINK_PATH')) exit(); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<LINK href="<?php echo BASE_DIR; ?>top/admincp.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2900.3268" name=GENERATOR>
<script language="javascript" src="<?php echo BASE_DIR; ?>js/jquery.js"></script>
<script language="javascript">
$(document).ready(function(){
	$("#GetUserId").click(function(){
		$.ajax({
			type: "POST",
			url: "<?php echo url('AdminGetUserId','Euser'); ?>",
			data: "euser_id=" + $("#euser_id").val(),
			success: function(msg){
				eval("data = "+msg);
				$("#euser_id").val(data.euser_id);
				$("#UserInfo").html(
					'用户名:' + data.username + ' 权限:' + data.q + '<br />'+
					'姓名:' + data.name + ' 来自:'+data.from+'<br />'+
					'电话:'+data.tel+ ' 邮箱:'+data.mail+'<br />'
				);
			}
		}); 
	})
	$("#Getdomain").click(function(){
		$.ajax({
			type: "POST",
			url: "<?php echo url('AdminGetDomain','Enterprise'); ?>",
			data: "domain=" + $("#domain").val(),
			success: function(msg){
				if (msg == 'N') {
					alert('恭喜您，这个域名没人使用!');
				} else {
					$("#domain").val('');
					alert('抱歉，您选用的域名已经有人使用了!');
				}
			}
		}); 
	})
})
</script>
</HEAD>
<BODY topMargin=10>
<DIV id=append_parent></DIV>
<TABLE cellSpacing=6 cellPadding=2 width="100%" border=0>
  <TBODY>
  <TR>
    <TD>
      <TABLE class=guide cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD>企业管理&nbsp;»&nbsp;创建企业</TD>
        </TR></TBODY></TABLE><BR>
      <FORM action="" method=post enctype="multipart/form-data" name=settings id=settings>
        <TABLE class=tableborder cellSpacing=0 cellPadding=0 width="100%" 
border=0>
        <TBODY>
        <TR class=header>
          <TD colSpan=2>创建企业<IMG 
            id=menuimg_b8e6f4fa493903c4 
            style="MARGIN-TOP: -12px; FLOAT: right; MARGIN-RIGHT: 8px" 
            src="<?php echo BASE_DIR; ?>top/menu_reduce.gif" border=0> </TD>
        </TR>
        <TBODY id=menu_b8e6f4fa493903c4>
        <TR>
          <TD class=altbg1 width="40%"><B>所属用户:</B><BR>
            <SPAN 
            class=smalltxt>捆绑到此用户管理</SPAN></TD>
          <TD width="60%" class=altbg2><INPUT
            name=euser_id id="euser_id" size=50 value="<?php echo $Enter['euser_id']; ?>">
            <INPUT type=button class=button id="GetUserId" value="获 取 用 户 ID">
            <br><div id="UserInfo" style="width:100%; height:auto">
			
			</div></TD>
        </TR>
        <TR>
          <TD class=altbg1><B>企业捆绑域名:</B><BR>
            <SPAN 
            class=smalltxt>捆绑到此域名</SPAN></TD>
          <TD class=altbg2><INPUT
            name="domain" id="domain" size=50 value="<?php echo $Enter['domain']; ?>">
            <INPUT type=button class=button id="Getdomain" value="检查是否有重复"></TD><div id="Domain" style="width:100%; height:auto"></div>
        </TR>
        <TR>
          <TD class=altbg1 width="40%"><B>所属分类:</B><BR>
            <SPAN 
            class=smalltxt>该企业所属分类</SPAN></TD>
          <TD class=altbg2><select name="cid" id="cid">
            <option value="<?php echo $Enter['cid']; ?>"> - - - 不修改 - - - </option>
			<?php foreach($Ecate as $E): ?>
            <option value="<?php echo $E['id']; ?>"><?php echo $E['name']; ?></option>
			<?php endforeach; ?>
          </select>
            <input name="enter_id" type="hidden" id="enter_id" value="<?php echo $Enter['enter_id']; ?>"></TD>
        </TR>
        <TR>
          <TD class=altbg1 width="40%"><B>公司名称:</B><BR>
            <SPAN 
            class=smalltxt>公司的名称，最大输入字符120个</SPAN></TD>
          <TD class=altbg2><INPUT 
            name=name id="name" size=50 value="<?php echo $Enter['name']; ?>"> </TD></TR>
        <TR>
          <TD class=altbg1 width="40%"><B>Logo标志:</B><BR>
            上传Logo标志，直接填写地址</TD>
          <TD class=altbg2><input type="file" name="file">
            <br>
			<?php if(!empty($Enter['logo'])){ ?>
				<img src="<?php echo $Enter['logo']; ?>">
				<input name="logo" type="hidden" id="logo" value="<?php echo $Enter['logo']; ?>">
			<?php } ?>
			</TD>
        </TR>
        <TR>
          <TD class=altbg1 width="40%"><B>公司简单介绍:</B><BR>
            <SPAN 
            class=smalltxt>公司简短介绍</SPAN></TD>
          <TD class=altbg2><TEXTAREA id=enote name=enote rows=6 cols=50><?php echo $Enter['enote']; ?></TEXTAREA></TD>
        </TR>
        <TR>
          <TD class=altbg1 width="40%"><B>电话:</B><BR>
            <SPAN 
            class=smalltxt>公司联系电话，可填写多个</SPAN></TD>
          <TD class=altbg2><INPUT 
            name=tel id="tel" size=50 value="<?php echo $Enter['tel']; ?>"></TD>
        </TR>
        <TR>
          <TD class=altbg1 width="40%"><B>传真:</B><BR>
            <SPAN 
            class=smalltxt>公司传真</SPAN></TD>
          <TD class=altbg2><INPUT 
            name=fax id="fax" size=50 value="<?php echo $Enter['fax']; ?>"></TD></TR>
        <TR>
          <TD class=altbg1 vAlign=top><B>联系人:</B><BR>
            <SPAN 
            class=smalltxt>最大输入字符30个</SPAN></TD>
          <TD class=altbg2><INPUT 
            name=contactpeople id="contactpeople" size=50 value="<?php echo $Enter['contactpeople']; ?>"></TD>
        </TR>
        <TR>
          <TD class=altbg1 vAlign=top><B>地址:</B><BR>
            <SPAN 
            class=smalltxt>联系地址</SPAN></TD>
          <TD class=altbg2><INPUT 
            name=address id="address" size=50 value="<?php echo $Enter['address']; ?>"></TD>
        </TR>
        <TR>
          <TD class=altbg1 vAlign=top><B>视频地址:</B><BR>
            <SPAN 
            class=smalltxt>请将视频代码复制到里面</SPAN></TD>
          <TD class=altbg2><TEXTAREA name=videocode cols=50 rows=6 id=videocode><?php echo $Enter['videocode']; ?></TEXTAREA></TD>
        </TR>
        <TR>
          <TD class=altbg1 vAlign=top><B>推荐类型:</B><BR>
            <SPAN 
            class=smalltxt>推荐类型</SPAN></TD>
          <TD class=altbg2><select name="re_id" id="re_id">
            <option value="<?php echo $Enter['re_id']; ?>"><?php echo $Enter['recommend']['name']?></option>
			<?php foreach($Recomm as $R): ?>
			<option value="<?php echo $R['re_id']; ?>"><?php echo $R['name']; ?></option>
			<?php endforeach; ?>
          </select>
          </TD>
        </TR>
        <TR>
          <TD class=altbg1 vAlign=top width="40%"><B>是否锁定:</B><BR>
            <SPAN 
            class=smalltxt>是否锁定管理</SPAN></TD>
          <TD class=altbg2><select name="lock" id="lock">
		  <option value="<?php echo $Enter['lock']; ?>"><?php echo $Enter['lock']; ?></option>
            <option value="N">不锁定</option>
            <option value="Y">锁定</option>
                    </select></TD></TR>
        <TR>
          <TD class=altbg1 vAlign=top width="40%"><B>是否开启产品:</B><BR>
            <SPAN 
            class=smalltxt>打开该企业的产品视频功能</SPAN></TD>
          <TD class=altbg2><select name="videolock" id="lock">
		  <option value="<?php echo $Enter['videolock']; ?>"><?php echo $Enter['videolock']; ?></option>
            <option value="N">不锁定</option>
            <option value="Y">锁定</option>
                    </select></TD></TR>
					</TBODY></TABLE>
        <BR>
      <CENTER>
        <INPUT name=Submit type=submit class=button id="Submit" value="确 认 修 改">
      </CENTER></FORM></TD></TR></TBODY></TABLE><BR><BR>
<DIV class=footer>
<HR width="80%" color=#9db3c5 noShade SIZE=0>
Powered by <A style="COLOR: #666" href="http://www.ThankPHP.com/" 
target=_blank><B>ThankPHP!</B> 0.1.0</A> &nbsp;© 2009-2010, <B><A 
style="COLOR: #666" href="http://www.ThankPHP.com/" target=_blank>ThankPHP 
Inc.</A></B><SPAN class=smalltxt></SPAN></DIV>
</BODY></HTML>
